//
//  aftertasteAppDelegate_iPad.m
//  aftertaste
//
//  Created by Someone Else on 4/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "aftertasteAppDelegate_iPad.h"

@implementation aftertasteAppDelegate_iPad

@synthesize detailNavigationController;
@synthesize splitViewController;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
	[self startLaunchingWithOptions: launchOptions];
	[self makeSplitView];
	[self finishLaunchingWithOptions: launchOptions];
	return YES;
}

- (void)makeSplitView
{
	self.detailNavigationController = [[UINavigationController alloc]
		initWithRootViewController: self.detailViewController];
	NSArray *a = [NSArray arrayWithObjects: 
		self.navigationController,
		self.detailNavigationController,
		nil];

	self.splitViewController = [[UISplitViewController alloc] init];

	[self.splitViewController setViewControllers: a];
	self.rootViewController = splitViewController;
}

- (void)dealloc
{
	[super dealloc];
}

@end
